<template>
  <div class="guests">
    <div class="guests-nav">
        <el-image
          style="width: 280px; height: 320px"
          :src="guestsDetails.pic_url"
          fit="cover"
        ></el-image>
      <h1 class="name">{{ guestsDetails.title }}</h1>
      <div class="rich-text" v-html="guestsDetails.content"></div>
    </div>
  </div>
</template>
<script>
import { mapGetters, mapActions } from "vuex";
export default {
  name: "guests",
  components: {},
  data() {
    return {};
  },
  mounted() {
    this.getDetail();
  },
  methods: {
    ...mapActions(["getGuestsDetails"]),
    getDetail() {
      let data = {
        id: this.$route.query.id,
      };
      this.getGuestsDetails(data);
    },
  },
  computed: {
    ...mapGetters(["guestsDetails"]),
  },
};
</script>
<style scoped>
.guests {
  padding: 100px 0;
  width: 1200px;
  margin: 0 auto;
}
.top-info {
  margin: 30px 0 40px;
  font-size: 14px;
  font-family: Source Han Sans CN;
  font-weight: 400;
  color: #666666;
}
.top-info span {
  color: #0e93e4;
}
.guests-nav .name {
  font-size: 24px;
  font-family: Source Han Sans CN;
  font-weight: 400;
  color: #000000;
  margin: 40px 0 10px;
}
</style>